package com.glorysoft.wangnianxinpda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.glorysoft.wangnianxinpda.adapter.viewholder.DataBindingBaseViewHolder;
import com.glorysoft.wangnianxinpda.databinding.AdapterAbnomalCodeDialogBinding;
import com.glorysoft.wangnianxinpda.entity.AbnomalCodeEntity;

import java.util.List;

/**
 * @Author Zhangjy
 * @Date 2021/7/1 18:38
 * Description :
 */
public class AbnoamlCodeDialogAdapter extends BaseQuickAdapter<AbnomalCodeEntity, DataBindingBaseViewHolder> {

    public AbnoamlCodeDialogAdapter(int layoutResId, @Nullable List<AbnomalCodeEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(DataBindingBaseViewHolder helper, AbnomalCodeEntity item) {
        AdapterAbnomalCodeDialogBinding dataBinding = (AdapterAbnomalCodeDialogBinding) helper.getDataBinding();
        dataBinding.setEntity(item);
        dataBinding.executePendingBindings();
    }
}
